<!-- header -->
<header id="page_header">
    <a href="<?php echo $img_url; ?>"><img src="<?php echo $img_url; ?>style/images/img1.jpg" alt="" class="logo" border="0"/></a>
    <div class="banner">
          <!--<img src="<?php echo $img_url; ?>style/images/DHL_blackhawk_728x90.jpg" alt="" /> -->
        <div style="width:728px; height:90px;" id="topbanner"><img src="<?php echo $img_url; ?>style/images/banner/banner_728x80.jpg" alt=""/></div>
    </div>
</header>
<!-- menu -->
<nav id="nav_home_menu">
    <div class="menu_home">
        <a id="home" href="<?php echo $base_url; ?>" class="home<?php if ($page_name != "home") echo "-inactive"; ?>"><img src="<?php echo $img_url; ?>style/images/img2.gif" alt=""/></a>
        <a id="TinXNK" href="<?php echo $base_url; ?>tin-xnk" <?php if (($page_name == "news" || $page_name == "news_details") && (isset($news_cate) && $news_cate == "tin-xnk")) echo 'class="active"'; ?>>TIN XNK</a>
        <a id="VBPQ" href="<?php echo $base_url; ?>van-ban-phap-quy" <?php if ($page_name == "docs") echo 'class="active"'; ?>>VĂN BẢN PHÁP QUY</a>  
        <a id="KTXNK" href="<?php echo $base_url; ?>kien-thuc-xnk" <?php if ($page_name == "knowledge") echo 'class="active"'; ?>>KIẾN THỨC XNK</a>  
        <a id="TTHQ" href="<?php echo $base_url; ?>thu-tuc-hai-quan" <?php if ($page_name == "v_customs_procedures" || $page_name == "v_customs_detail") echo 'class="active"'; ?>>THỦ TỤC HẢI QUAN</a>  
        <a id="NVGN" href="<?php echo $base_url; ?>nghiep-vu-giao-nhan" <?php if ($page_name == "forwarding") echo 'class="active"'; ?>>NGHIỆP VỤ GIAO NHẬN</a>  
        <a id="NVLQ" href="<?php echo $base_url; ?>video" <?php if ($page_name == "video") echo 'class="active"'; ?>>VIDEO</a>  
        <a id="HOIDAP" href="<?php echo $base_url; ?>hoi-dap"<?php if ($page_name == "faq") echo ' class="active"'; ?>>HỎI ĐÁP</a>
        <a id="RAOVAT" href="<?php echo $base_url; ?>rao-vat"<?php if ($page_name == "adv" || $page_name == "adv_add" || $page_name == "adv_details") echo ' class="active"'; ?>>RAO VẶT</a>
    </div>
    <div id="home_sub_menu">
        <div id="sub_tinxnk">
            <?php
            for($i=0; $i<6; $i++){
                echo "<div class='tintuc_item item_margin'>"
                    . "<a href='/tin-xnk/" . $aLatestNews[$i]->url . "-" . $aLatestNews[$i]->news_id . ".html'>"
                    . "<img src='" . $img_url . "/style/" . $aLatestNews[$i]->img_thumb2 . "' alt='" . $aLatestNews[$i]->title . "'>"
                    . "</a>"
                    . "<a title='" . $aLatestNews[$i]->title . "' href='/tin-xnk/" . $aLatestNews[$i]->url . "-" . $aLatestNews[$i]->news_id . ".html'>"
                    . $aLatestNews[$i]->title
                    . "</a></div>";
            }
            ?>
        </div>
        <div id="sub_vbpq" class="submenu_text">
            <?php
            $sizeCate = count($aCate2);
            $html = "";
            for($i=0; $i<$sizeCate; $i++) {
                $arrParams = "txt_DOCS_Keyword:|"
                    . "txt_DOCS_Cate:" . $aCate2[$i]->cate_name . "|"
                    . "isPost:1|"
                    . "hidCateId:" . $aCate2[$i]->cate_id . "|"
                    . "h_cur_page:1";
                $html .= "<a href=\"javascript:;\" class=\"item_vbpq\" onclick=\"SubMenu.sendPost('van-ban-phap-quy','" . $arrParams . "');\">" . $aCate2[$i]->cate_name . "</a>";                
            }
            echo $html;
            ?>
        </div>
        <div id="sub_ktxnk" class="submenu_text">
            <?php
            $sizeCate = count($aCate3);
            $html = "";
            for($i=0; $i<$sizeCate; $i++) {
                $arrParams = "/kien-thuc-xnk/tim-kiem/1?txtSearch=&cateId=" . $aCate3[$i]->cate_id . "&cateName=" . $aCate3[$i]->cate_name;
                $html .= "<a href=\"" . $arrParams . "\" class=\"item_vbpq\">" . $aCate3[$i]->cate_name . "</a>";                
            }
            echo $html;
            ?>
        </div>
        <div id="sub_nvgn" class="submenu_text">
            <?php
            $sizeCate = count($aCate5);
            $html = "";
            for($i=0; $i<$sizeCate; $i++) {
                $arrParams = "/nghiep-vu-giao-nhan/tim-kiem/1?txtSearch=&cateId=" . $aCate5[$i]->cate_id;
                $html .= "<a href=\"" . $arrParams . "\" class=\"item_vbpq\">" . $aCate5[$i]->cate_name . "</a>";    
                if($i == 3){
                    $html .= "<br>";
                }
            }
            echo $html;
            ?>
        </div>
        <div id="sub_tthq" class="submenu_text">
            <?php
            $arrSizeColumn = array(8, 7, 7);
            $html = "";
            $countTemp = 0;
            for($k=0; $k<3; $k++){
                $html .= "<div class='tthq_column" . ($k + 1) . "'>";
                for($i=0; $i<$arrSizeColumn[$k]; $i++) {
                    $arrParams = "/thu-tuc-hai-quan/tim-kiem/1?txtSearch=&txtCustomsCate=" . $aCate4[$countTemp]->cate_id . "|";
                    $html .= "<a href='" . $arrParams . "' class='item_vbpq'>" . $aCate4[$countTemp]->cate_name . "</a><br>";
                    $countTemp++;
                }
                $html .= "</div>";
            }
            echo $html;
            ?>
            <div class="clearfix"></div>
        </div>
        <div id="sub_hoidap" class="submenu_text">
            <?php
            $sizeCate = count($aCate6);
            $html = "";
            for($i=0; $i<$sizeCate; $i++) {
                $arrParams = "txt_FAQ_Keyword:|"
                    . "txt_FAQ_Cate:" . $aCate6[$i]->cate_name . "|"
                    . "isPost:1|"
                    . "hidCateId:" . $aCate6[$i]->cate_id . "|"
                    . "h_cur_page:1";
                $html .= "<a href=\"javascript:;\" class=\"item_vbpq\" onclick=\"SubMenu.sendPost('hoi-dap','" . $arrParams . "');\">" . $aCate6[$i]->cate_name . "</a>";                
                if($i == 5){
                    $html .= "<br>";
                }
            }
            echo $html;
            ?>
        </div>        
    </div>
</nav>
<form id="formPost" method="post"></form>